{extend name="common/layout" /}

{block name="body"}
<form class="layui-form">
    <!-- 主体内容 -->
    <div class="wait-body-content">
        <!-- 短信渠道 -->
        <div class="layui-form-item">
            <label for="name" class="layui-form-label"><span class="asterisk">*</span>短信渠道：</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" value="{$detail.name ?? ''}" autocomplete="off"
                       disabled readonly class="layui-input layui-disabled" lay-verType="tips">
            </div>
        </div>
        <!-- 短信签名 -->
        <div class="layui-form-item">
            <label for="sign" class="layui-form-label"><span class="asterisk">*</span>短信签名：</label>
            <div class="layui-input-block">
                <input type="text" id="sign" name="sign" value="{$detail.params.sign ?? ''}"
                       autocomplete="off" class="layui-input" lay-verType="tips">
            </div>
        </div>
        <!-- accessKeyId -->
        <div class="layui-form-item">
            <label for="access_key_id" class="layui-form-label"><span class="asterisk">*</span>accessKeyId：</label>
            <div class="layui-input-block">
                <input type="text" id="access_key_id" name="access_key_id" value="{$detail.params.access_key_id ?? ''}"
                       autocomplete="off" class="layui-input" lay-verType="tips">
            </div>
        </div>
        <!-- accessSecret -->
        <div class="layui-form-item">
            <label for="access_secret" class="layui-form-label"><span class="asterisk">*</span>accessSecret：</label>
            <div class="layui-input-block">
                <input type="text" id="access_secret" name="access_secret" value="{$detail.params.access_secret ?? ''}"
                       autocomplete="off" class="layui-input" lay-verType="tips">
            </div>
        </div>
        <!-- 状态 -->
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block">
                <input type="radio" name="enable" value="1" title="启用" {if $detail.enable===1}checked{/if}>
                <input type="radio" name="enable" value="0" title="禁用" {if $detail.enable===0}checked{/if}>
            </div>
        </div>
    </div>

    <!-- 提交按钮 -->
    <div class="wait-body-footer">
        <a class="layui-layer-btn0" lay-submit lay-filter="addForm">确定</a>
        <a class="layui-layer-btn1" id="closePopupWindow">取消</a>
    </div>
</form>
{/block}